<template>
  <div>HOME</div>
</template>

<script>
export default {
    name:'HomeView',
    beforeRouteLeave(to,from){
      console.log(`即将离开${from.path}(HomeView)去往${to.path}`);
    }
}
</script>

<style>

</style>